Skip to content

feat(agents): add Kiro CLI as a preset ACP harness - #3287

Open
FredLackeyOfficial wants to merge 2 commits into
block:mainfrom
FredLackeyOfficial:feat/kiro-preset
Open

feat(agents): add Kiro CLI as a preset ACP harness#3287
FredLackeyOfficial wants to merge 2 commits into
block:mainfrom
FredLackeyOfficial:feat/kiro-preset

Conversation

@FredLackeyOfficial

Copy link
Copy Markdown

What

Register Kiro CLI (kiro-cli acp) as a tier-2 preset harness so it appears as a one-click option in Settings → Agents without requiring a custom JSON definition.

This follows up on the invitation in #2914 (comment) after the generic BYOH system landed in #2773.

Changes

  • desktop/src-tauri/src/managed_agents/discovery.rs — add a PresetHarness entry for kiro (command: kiro-cli, args: ["acp"])
  • desktop/public/harness-logos/kiro.svg — bundled Kiro logo (purple rounded-rect with ghost mark)
  • desktop/src/features/onboarding/ui/RuntimeIcon.tsx — map kiro/harness-logos/kiro.svg in PRESET_LOGOS
  • desktop/public/harness-logos/CREDITS.md — provenance row for the Kiro mark
  • desktop/scripts/check-file-sizes.mjs — ratchet discovery.rs line limit (+10 lines)

How it was tested

Automated:

  • cargo fmt --check — clean
  • cargo clippy --lib -- -D warnings — clean
  • 42 custom_harnesses unit tests pass (including preset_ids_are_reserved which validates "kiro" is properly reserved)
  • 96 discovery unit tests pass
  • presetLogos.test.mjs (12 tests) — confirms logo file exists and is mapped

Protocol (direct ACP handshake):

  • initialize → Kiro responds with V2-compatible capabilities (protocol version 1, agent "Kiro CLI Agent" v2.13.0)
  • session/new with cwd + mcpServers → creates session, returns session ID
  • session/prompt → streams agent_message_chunk updates, returns stopReason: end_turn
  • Full LLM round-trip confirmed (agent replied correctly to test prompt)

Manual (desktop app):

  • just desktop-standalone on macOS — Kiro appears in Settings → Agents with logo
  • Status shows "Available" when kiro-cli is on PATH
  • Created an agent using the Kiro preset, sent a prompt, received a response

Follow-up (not in this PR)

The preset is a "dumb launcher" — it does not probe auth status or offer a login hint. A future PR could extend PresetHarness with optional readiness fields (the whoami probe and login guidance mentioned in the #2914 closing comment). Filed separately to keep this PR minimal.

Related

Register kiro-cli acp in PRESET_HARNESSES so Kiro appears as a one-click
option in the Agents gallery. Users with Kiro CLI on PATH can select it
from Settings without creating a custom harness JSON file.

Refs: block#2914 (comment)
Signed-off-by: Fred Lackey <[email protected]>
Bundle the Kiro mark as desktop/public/harness-logos/kiro.svg and register
it in PRESET_LOGOS so the Agents gallery and Settings panel render the Kiro
logo instead of the generic TerminalSquare fallback.

Ratchet check-file-sizes.mjs for the +10 lines in discovery.rs.

Signed-off-by: Fred Lackey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant